package com.dronff.listener;


import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import org.apache.log4j.Logger;

public class BindSuccessListener implements ChannelFutureListener {
    static final Logger logger = Logger.getLogger(BindSuccessListener.class);
    @Override
    public void operationComplete(ChannelFuture channelFuture) throws Exception {
        if (channelFuture.isSuccess()) {
            logger.debug("监听端口成功");
        }else {
            logger.error("监听端口失败");
        }
    }
}
